import React, { Component } from 'react';

export default class App extends Component {
  handleClick(id, e) {
    console.log('id  ----->  ', id);
    e.preventDefault();
  }

  render() {
    return (
      <div>
        <a
          href="http://www.baidu.com"
          onClick={(e) => {
            this.handleClick(1, e);
          }}
        >
          删除1
        </a>
        <a href="http://www.baidu.com" onClick={(e) => this.handleClick(2, e)}>
          删除2
        </a>
        <a href="http://www.baidu.com" onClick={(e) => this.handleClick(3, e)}>
          删除3
        </a>
      </div>
    );
  }
}
